Rte code generating method and apparatus performing the same

ABSTRACT

Disclosed is an RTE code generating method including: extracting information of an application by analyzing a plurality of template files; analyzing an operation time for the information of the application with reference to a database of operation times for Run Time Environment (RTE) generation codes; and generating RTE code generation information for the application based on the analysis result. According to the present invention, application software in which operation timing and operation stability are secured can be developed by generating RTE code generation information for an application in consideration of an actual operation time of the application.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the priority of Korean Patent Application No. KR10-2014-0180286 filed on Dec. 15, 2014, in the Korean IntellectualProperty Office, the disclosure of which is incorporated herein byreference.

BACKGROUND

1. Technical Field

The present invention relates to an RTE code generating method and anapparatus performing the same.

2. Description of the Related Art

In general, an electronic device system mounted on a vehicle includes anumber of ECUs in which software and hardware are integrated. However,due to a dependent attribute of hardware generated in a softwaredeveloping process, there occurs a difficulty in integrating electronicdevice systems mounted on a vehicle and an implantation performancebetween pieces of software deteriorates.

According to the related art, a runtime environment in a standardarchitecture is a scheme that supports communication between allocatedsoftware components, and between an upper level software component and alower level basic software component so that a mapped software componentmay be executed on ECU hardware and basic hardware.

However, an operation of creating a runtime environment based onsettings of an upper level application and lower level basic softwarerequires much time and great efforts.

SUMMARY

Therefore, the present invention provides an RTE code generating methodand an apparatus performing the same, by which application software inwhich operation timing and operation stability are secured can bedeveloped by generating RTE code generation information for anapplication in consideration of an actual operation time of theapplication.

The objects of the present invention are not limited to theabove-mentioned ones, and other objects will be made clear to thoseskilled in the art from the following description.

In accordance with an aspect of the present invention, there is providedan RTE code generating method including: extracting information of anapplication by analyzing a plurality of template files; analyzing anoperation time for the information of the application with reference toa database of operation times for Run Time Environment (RTE) generationcodes; and generating RTE code generation information for theapplication based on the analysis result.

According to an embodiment, extracting information of an application byanalyzing a plurality of template files may include: extracting theinformation of the application including at least one of the type of theapplication, the type of an OS task in which the application is mapped,and an event associated with the application.

According to an embodiment, extracting information of an application byanalyzing a plurality of template files may include: when the type ofthe application is a periodic operational application, extractingnetwork information used to transmit data while the application isoperated.

According to an embodiment, extracting information of an application byanalyzing a plurality of template files may include: when the type ofthe application is a non-periodic operational application, extractinginformation on a function used when data are transmitted to anotherapplication in the application.

According to an embodiment, analyzing an operation time for theinformation of the application with reference to a database of operationtimes for Run Time Environment (RTE) generation codes may include:analyzing an operation time of a code corresponding to the informationof the application with reference to a database of operation times forRun Time Environment (RTE) generation codes.

According to an embodiment, generating RTE code generation informationmay include: generating the RTE code generation information bydetermining the form of an RTE code and the type of the RTE code basedon the analysis result.

According to an embodiment, the plurality of template files may includeat least one of a software component template file for the application,an RTE template file, and an OS template file.

In accordance with another aspect of the present invention, there isprovided an RTE code generating apparatus including: an RTE generationcode operation time database in which operation times for Run TimeEnvironment (RTE) generation codes are stored; an applicationinformation extracting unit that extracts information of an applicationby analyzing a plurality of template files; an operation time analyzingunit that analyzes an operation time for the information of theapplication with reference to a database of operation times for RTEgeneration codes; and an RTE code generation information generating unitthat generates RTE code generation information for the application basedon the analysis result.

According to an embodiment, the application information extracting unitmay extract information of the application including at least one of thetype of the application, the type of an OS task in which the applicationis mapped, and an event associated with the application.

According to an embodiment, when the type of the application is aperiodic operational application, the application information extractingunit may extract network information used to transmit data while theapplication is operated.

According to an embodiment, when the type of the application is anon-periodic operational application, the application informationextracting unit may extract information on a function used when data aretransmitted to another application in the application.

According to an embodiment, the operation time analyzing unit mayanalyze an operation time of a code corresponding to the information ofthe application with reference to a database of operation times for RTEgeneration codes.

According to an embodiment, the RTE code generation informationgenerating unit may generate the RTE code generation information bydetermining the form of an RTE code and the type of the RTE code basedon the analysis result.

According to an embodiment, the plurality of template files may includeat least one of a software component template file for the application,an RTE template file, and an OS template file.

Detailed items of the other embodiments are included in the detaileddescription and the accompanying drawings.

The above and other aspects, features and advantages of the inventionwill become apparent from the following description of the followingembodiments given in conjunction with the accompanying drawings.However, the present invention is not limited to the embodimentsdisclosed below, but may be implemented in various forms. Theembodiments of the present invention is provided to make the disclosureof the present invention complete and fully inform those skilled in theart to which the present invention pertains of the scope of the presentinvention. The same reference numerals denote the same elementsthroughout the specification.

According to the present invention, application software in whichoperation timing and operation safety are secured can be developed bygenerating RTE code generation information for an application inconsideration of an actual operation time of the application.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a view illustrating an RTE code generating apparatus accordingto the present invention;

FIG. 2 is a block diagram illustrating an internal structure of an RTEcode generating apparatus according to an embodiment of the presentinvention;

FIG. 3 is an exemplary view illustrating an execution process of an RTEcode generating apparatus according to the present invention;

FIG. 4 is an exemplary view illustrating an execution process of an RTEcode generating apparatus according to the present invention;

FIG. 5 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention;

FIG. 6 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention;

FIG. 7 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention; and

FIG. 8 is a flowchart illustrating an embodiment of an RTE codegenerating method according to the present invention.

DETAILED DESCRIPTION

Hereinafter, exemplary embodiments of the present invention will bedescribed in detail with reference to the accompanying drawings.

The term “OS task” used in the specification refers to an operating unitof an application. One or a plurality of applications may be mapped inthe OS task. When a plurality of applications are mapped in the OS task,a unit piece of software may be operated according to a sequencedetermined by the user.

The term “non-periodic operational application” used in thespecification refers to an application that is operated only when aspecific request is made.

The term “periodic operational application” used in the specificationrefers to an application that is operated automatically.

FIG. 1 is a view illustrating an RTE code generating apparatus accordingto the present invention.

Referring to FIG. 1, the RTE code generating apparatus 100 receives asoftware component template file 200 for an application, an RTE templatefile 300, and an OS template file 400.

The RTE code generating apparatus 100 may extract the type of theapplication by analyzing the software component template file 200 forthe application, and may extract network information according to thetype of the application.

In one embodiment, when the type of the application is a periodicoperational application, the RTE code generating apparatus 100 mayextract network information used to transmit data during an operation ofthe application.

In another embodiment, when the type of the application is anon-periodic operational application, the RTE code generating apparatus100 may extract information on a function used when data are transmittedto another application in the application.

The RTE code generating apparatus 100 may extract the type of an OS taskused during an operation of the application and an operation method ofthe application by analyzing the RTE template file 300.

The RTE code generating apparatus 100 may extract the type of the OStask by analyzing the OS template file 400.

Thereafter, the RTE code generating apparatus 100 may analyze anoperation time for the extracted information with reference to adatabase of operation times for RTE generation codes, and may generatethe RTE code generation information 500 for the application based on theanalysis result.

FIG. 2 is a block diagram illustrating an internal structure of an RTEcode generating apparatus according to an embodiment of the presentinvention.

Referring to FIG. 2, the RTE code generating apparatus 100 includes atemplate file receiving unit 110, an application information extractingunit 120, an operation time analyzing unit 130, an RTE code generationinformation generating unit 140, an RTE generation code operation timedatabase 150, and a control unit 160.

The template file receiving unit 110 receives a plurality of templatefiles and provides the received template files to the applicationinformation extracting unit 120. Here, the plurality of template filesmay include at least one file of a software component template file foran application, an RTE template file, and an OS template file.

The application information extracting unit 120 may extract informationof the application by analyzing a plurality of template files, andprovides the extracted information to the operation time analyzing unit130.

In one embodiment, the application information extracting unit 120 mayextract the type of the application by analyzing the software componenttemplate file for the application, and may extract network informationaccording to the type of the application.

When the type of the application is a periodic operational application,the application information extracting unit 120 may extract networkinformation used to transmit data during an operation of theapplication.

Meanwhile, when the type of the application is a non-periodicoperational application, the application information extracting unit 120may extract information on a function used to transmit data to anotherapplication in the application.

In another embodiment, the application information extracting unit 120may extract the type of an OS task used during an operation of anapplication and an operation method of the application by analyzing anRTE template file.

In another embodiment, the application information extracting unit 120may extract the type of an OS task by analyzing an OS template file.

The operation time analyzing unit 130 analyzes an operation time forinformation of the application extracted by the application informationextracting unit 120 with reference to the RTE generation code operationtime database 150, and provides the analysis result to the RTE codegeneration information generating unit 140.

The RTE code generation information generating unit 140 generates RTEcode generation information based on an operation time for theinformation of the application analyzed by the operation time analyzingunit 130.

FIG. 3 is an exemplary view illustrating an execution process of an RTEcode generating apparatus according to the present invention. Theembodiment disclosed in FIG. 3 relates to an embodiment in which the RTEcode generating apparatus may extract scheduling information byanalyzing a plurality of template files.

The RTE code generating apparatus 100 receives the plurality of templatefiles. For example, the RTE code generating apparatus 100 receives asoftware component template file 310 for Application 1, a softwarecomponent template file 320 for Application 2, an RTE template file 330,and an OS template file 340.

The RTE code generating apparatus 100 extracts the type of anapplication by analyzing a software component template file for anapplication.

For example, the RTE code generating apparatus 100 extracts informationthat the type of Application 1 is a periodic operational application andis operated for every 10 ms by analyzing the software component templatefile 310 for Application 1.

In another example, the RTE code generating apparatus 100 extractsinformation that the type of Application 2 is a non-periodic operationalapplication and is operated when a characteristic request is made byanalyzing the software component template file 320 for Application 2.

The RTE code generating apparatus 100 extracts the type of an OS taskused during an operation of the application and an operation method ofthe application by analyzing the RTE template file.

For example, the RTE code generating apparatus 100 may extractinformation that an OS task used during an operation of Application 1 isOsTaskA and is operated by OsAlarm_A by analyzing the RTE template file330. Furthermore, the RTE code generating apparatus 100 may extractinformation that an OS task used during an operation of Application 2 isOsTask_B and is operated by OsEvent_A by analyzing the RTE templatefile.

The RTE code generating apparatus 100 extracts the type of an OS task byanalyzing an OS template file.

For example, the RTE code generating apparatus 100 may extractinformation that the type of OsTask_A is basic and the type of OsTask_Bis extended by analyzing an OS template file 340.

Thereafter, the RTE code generating apparatus 100 may analyze anoperation time for the extracted information with reference to aoperation time database for an RTE generation code, and may generate theRTE code generation information 350 for the application based on theanalysis result.

FIG. 4 is an exemplary view illustrating an execution process of an RTEcode generating apparatus according to the present invention. Theembodiment disclosed in FIG. 4 relates to an embodiment in which the RTEcode generating apparatus may extract communication scheme informationby analyzing files of a plurality of templates.

Referring to FIG. 4, the RTE code generating apparatus 100 receivesfiles of the plurality of templates. For example, the RTE codegenerating apparatus 100 receives a software component template file 310for Application 1, a software component template file 320 forApplication 2, an RTE template file 330, and an OS template file 340.

The RTE code generating apparatus 100 extracts network information usedto transmit data while an application is operated when the type of theapplication is a periodic operational application by analyzing asoftware component template file for the application.

For example, the RTE code generating apparatus 100 extracts informationthat data are transmitted through a CAN network when Application 1 isoperated, by analyzing the software component template file 310 forApplication 1.

The RTE code generating apparatus 100 extracts information on a functionused to transmit data to another application in the application when thetype of the application is a non-periodic operational application byanalyzing a software component template file for the application.

For example, the RTE code generating apparatus 100 may extractinformation that Application 2 is operated by a specific request and anRte_Write_Application 1 function in a communication form using asoftware buffer should be provided because data are transmitted toanother application in Application 2, by analyzing a software componenttemplate file 320 on Application 2.

The RTE code generating apparatus 100 may generate RTE code generationinformation 350 using the extracted information.

In one embodiment, the RTE code generating apparatus 100 may analyze anoperation time for the extracted information with reference to aoperation time database for an RTE generation code, and may generate theRTE code generation information 350 for the application based on theanalysis result.

FIG. 5 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention.

Referring to FIG. 5, according to the related art, when RTE codegeneration information is that Application 1 is operated for every 10 msand the type of an OS task used during an operation thereof is Basic,Application 1 is operated at 10 ms, 20 ms, 30 ms, and 40 ms as indicatedreference numeral 510.

However, the application analyzing unit may receive RTE code generationinformation from the RTE code generating apparatus 100 (see FIG. 1), mayanalyze timing for the RTE code generation information with reference toa database on operation times for RTE generation codes, and may manage atiming error based on the analysis result.

For example, the application analyzing unit analyzes that an operationtime of an OS Alarm code of the RTE code generation information is 10ns, an operation time of an OS Task Activate code is 50 ns, and anoperation time of an RTE start code is 25 ns, with reference to thedatabase on operation times for RTE generation codes. The applicationanalyzing unit may identify whether an integrity of an operation is notpresent (in particular, in an aspect of timing).

The present invention guarantees operation timing as indicated byreference 520 because the RTE code generating apparatus 100 generatesRTE code generation information for an application based on an analysisresult on an operation time of the application.

FIG. 6 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention.

Referring to FIG. 6, the RTE code generating apparatus 100 (see FIG. 1)may extract information that an Rte_Write_Application1( ) function in acommunication form using a software buffer should be provided because anapplication is operated by a specific request and data are transmittedto another application in the application, by analyzing a softwarecomponent template file on the application.

The application analyzing unit analyzes an operation time of anRte_Write_Application1( ) function of the RTE code generationinformation generated by the RTE code generating apparatus 100 withreference to a database on operation times for RTE generation codes. Forexample, the RTE code generating apparatus 100 may analyze an operationtime of an Rte_internal function 1 as being 10 ns and may analyze anoperation time of an Rte_internal function 2 as being 25 ns withreference to the database for operation times for RTE generation codes.

The RTE code generating apparatus 100 may extract network informationused to transmit data while an application is operated for a specificperiod by analyzing a software component template file for theapplication. Furthermore, the application analyzing unit may analyze atiming of the RTE code generation information generated by the RTE codegenerating apparatus 100 with reference to a database on operation timesfor RTE generation codes.

For example, the application analyzing unit may analyze that anoperation time of an AUTOSAR COM( ) function used to transmit data whenan Rte_Write_Application2( ) function of the RTE code generationinformation is executed, an operation time of an AUTOSAR PduR( )function is 30 ns, an operation time of an AUTOSAR_Canlf( ) is 15 ns,and an operation of an AUTOSAR CanDriver function is 20 ns, withreference to the database for operation times for RTE generation codes.

FIG. 7 is a reference view for explaining a process of verifying asimulation for RTE code generation information according to the presentinvention.

Referring to FIG. 7, the type of an application mapped in OsTask_A is aperiodic operational application and the application is operated atevery 10 ms. The type of an application mapped in OsTaskB_is anon-periodic operational application, and the application is executedaccording to an operation request by OsTask_A. The type of anapplication mapped in OsTask_C is a periodic operational application andthe application is operate at every 20 ms.

For example, if an operation of the application mapped in OsTask_C isended, the application mapped in OsTask_A is operated. OsTask_A isoperated again at the next period. The application 710 a mapped inOsTask_A requests an execution of an application 720 mapped in OsTask_Bin an execution process, and if the execution of the application 720mapped in OsTaskB_is ended, the remaining application 710 b of theapplication 710 a mapped in OsTask_A, which is not executed, isexecuted.

However, due to a call of OsTask_A, OsTask_B is performed such thatOsTask_C is not executed in a period of its own but is postponed to atime point when the second period of OsTask_A ends.

In this way, the present invention can develop application software inwhich operation timing and an operation stability are secured, bygenerating RTE code generation information on an application inconsideration of an actual operation time of the application.

FIG. 8 is a flowchart illustrating an embodiment of an RTE codegenerating method according to the present invention.

Referring to FIG. 8, the RTE code generating apparatus 100 (see FIG. 1)extracts information of an application by analyzing a plurality oftemplate files (step S810).

In an embodiment of step S810, the RTE code generating apparatus 100 mayextract information of an application including at least one of the typeof the application, the type of an OS task in which the application ismapped, and an event associated with the application, by analyzing aplurality of template files.

In another embodiment of step S810, when the type of an application is aperiodic operational application, the RTE code generating apparatus 100may extract network information used to transmit data during anoperation of the application.

In another embodiment of step S810, when the type of an application is anon-periodic operational application, the RTE code generating apparatus100 may extract information for a function used when data aretransmitted to another application in the application.

The RTE code generating apparatus 100 analyzes an operation time forinformation of an application with reference to a database of operationtimes for RTE generation codes (step S820).

In an embodiment of step S820, the RTE code generating apparatus 100 mayanalyze an operation time of a code corresponding to information of theapplication with reference to the database of operation times for RTEgeneration codes.

The RTE code generating apparatus 100 generates RTE code generationinformation on the application based on the analysis result (step S830).

In an embodiment of step S830, the RTE code generating apparatus 100 maygenerate the RTE code generation information by determining the form ofthe RTE code and the type of the RTE code based on the analysis result.

Although the exemplary embodiments of the present invention have beendescribed until now, it is noted that various modifications may be madewithout departing from the scope of the present invention. Therefore,the scope of the present invention is not limited to the describedembodiments, but should be determined by the equivalents of the claimstogether with the claims.

Although the present invention has been described with reference to thelimited embodiments and the drawings, the present invention is notlimited to the embodiments, but various corrections and modificationsmay be made from the description by those skilled in the art to whichthe present invention pertains. Accordingly, the technical spirit of thepresent invention should be recognized only by the claims, and theequivalents and the equivalent modifications thereof also fall withinthe scope of the present invention.

What is claimed is:
 1. An RTE code generating method comprising:extracting information of an application by analyzing a plurality oftemplate files; analyzing an operation time for the information of theapplication with reference to a database of operation times for Run TimeEnvironment (RTE) generation codes; and generating RTE code generationinformation for the application based on the analysis result.
 2. The RTEcode generating method of claim 1, wherein extracting information of anapplication by analyzing a plurality of template files comprises:extracting the information of the application comprising at least one ofthe type of the application, the type of an OS task in which theapplication is mapped, and an event associated with the application. 3.The RTE code generating method of claim 1, wherein extractinginformation of an application by analyzing a plurality of template filescomprises: when the type of the application is a periodic operationalapplication, extracting network information used to transmit data whilethe application is operated.
 4. The RTE code generating method of claim1, wherein extracting information of an application by analyzing aplurality of template files comprises: when the type of the applicationis a non-periodic operational application, extracting information on afunction used when data are transmitted to another application in theapplication.
 5. The RTE code generating method of claim 1, whereinanalyzing an operation time for the information of the application withreference to a database of operation times for Run Time Environment(RTE) generation codes comprises: analyzing an operation time of a codecorresponding to the information of the application with reference to adatabase of operation times for Run Time Environment (RTE) generationcodes.
 6. The RTE code generating method of claim 1, wherein generatingRTE code generation information comprises: generating the RTE codegeneration information by determining the form of an RTE code and thetype of the RTE code based on the analysis result.
 7. The RTE codegenerating method of claim 1, wherein the plurality of template filescomprise at least one of a software component template file for theapplication, an RTE template file, and an OS template file.
 8. An RTEcode generating apparatus comprising: an RTE generation code operationtime database in which operation times for Run Time Environment (RTE)generation codes are stored; an application information extracting unitthat extracts information of an application by analyzing a plurality oftemplate files; an operation time analyzing unit that analyzes anoperation time for the information of the application with reference toa database of operation times for RTE generation codes; and an RTE codegeneration information generating unit that generates RTE codegeneration information for the application based on the analysis result.9. The RTE code generating apparatus of claim 8, wherein the applicationinformation extracting unit extracts information of the applicationcomprising at least one of the type of the application, the type of anOS task in which the application is mapped, and an event associated withthe application.
 10. The RTE code generating apparatus of claim 8,wherein when the type of the application is a periodic operationalapplication, the application information extracting unit extractsnetwork information used to transmit data while the application isoperated.
 11. The RTE code generating apparatus of claim 8, wherein whenthe type of the application is a non-periodic operational application,the application information extracting unit extracts information on afunction used when data are transmitted to another application in theapplication.
 12. The RTE code generating apparatus of claim 8, whereinthe operation time analyzing unit analyzes an operation time of a codecorresponding to the information of the application with reference to adatabase of operation times for RTE generation codes.
 13. The RTE codegenerating apparatus of claim 8, wherein the RTE code generationinformation generating unit generates the RTE code generationinformation by determining the form of an RTE code and the type of theRTE code based on the analysis result.
 14. The RTE code generatingapparatus of claim 8, wherein the plurality of template files compriseat least one of a software component template file for the application,an RTE template file, and an OS template file.